package com.yzy.gateway.center.infrastructure.common;

/**
 * @version: java version 1.8
 * @Author: yzy
 * @description: 通用结果返回类
 * @date: 2023-10-26 11:08
 */
public class Result<T> {
    /**
     * 状态码
     */
    private String code;
    /**
     * 数据
     */
    private T data;
    /**
     * 信息
     */
    private String info;

    public Result(String code, T data, String info) {
        this.code = code;
        this.data = data;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
